package com.lv.service.impl;

import com.lv.common.dto.MenuList;
import com.lv.entity.Menu;
import com.lv.mapper.MenuMapper;
import com.lv.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 凉薄
 * @since 2022-01-06
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired
    MenuMapper menuMapper;
    @Override
    public List<MenuList> getMenuListByUserId(Long id) {
        return menuMapper.getMenuListByUserId(id);
    }

    @Override
    public List<Menu> getAllMenu() {
        return menuMapper.getAllMenu();
    }
}
